package com.newbee.redis.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.newbee.redis.ResponseResult;
import com.newbee.redis.entity.User;
import com.newbee.redis.service.LoginServcie;

@RestController
public class LoginController {

    @Autowired
    private LoginServcie loginServcie;

    @SuppressWarnings("rawtypes")
	@PostMapping("/user/login")
    public ResponseResult login(@RequestBody User user){
        return loginServcie.login(user);
    }
}

